import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static String fun(double n, int m) {
        String s = "%." + String.valueOf(m) + "f";
        return String.format(s, n);
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
        int delta = b*b - 4*a*c;
        double y1 = 0.0D,y2 = 0.0D;
        if(delta>=0){
            y1 = (b*-1 + Math.sqrt(delta)) / (2.0*a);
            y2 = (b*-1 - Math.sqrt(delta)) / (2.0*a);
            System.out.println("x1="+fun(y1,3)+" x2="+fun(y2,3));
        }else{
            double r = -1.0 * b / (2.0*a);
            double i = Math.sqrt(-1 * delta) / (2.0*a);
            System.out.print("x1="+fun(r,3)+"+"+fun(i,3)+"i ");
            System.out.print("x2="+fun(r,3)+"-"+fun(i,3)+"i");
        }
    }
}